#ifndef CLASSIFIEREDITOR_H
#define CLASSIFIEREDITOR_H

#include <QDialog>
#include "baseeditor.h"
#include "rangeedititem.h"

namespace Ui {
class ClassifierEditor;
}

class ClassifierEditor : public BaseEditor
{
    Q_OBJECT

public:
    explicit ClassifierEditor(const QModelIndex &index=QModelIndex(),QWidget *parent = 0);
    ~ClassifierEditor();
    float getRangeLo(int rangeIndex);
    float getRangeHi(int rangeIndex);
    Range getRange(int rangeIndex);

private slots:
    void on_btn_cancel_clicked();

    void on_btn_ok_clicked();
protected slots:
    void onAccept();
signals:
    void updateData();

private:
    Ui::ClassifierEditor *ui;
};

#endif // CLASSIFIEREDITOR_H
